
var status = 0;
var zones = 0;
var selectedMap = -1;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status >= 0 && mode == 0) {
	cm.dispose();
	return;
    }
    if (mode == 1)
	status++;
    else
	status--;
    if (status == 0) {
	cm.sendYesNo("确定要前往抽奖大厅吗？");
    } 
	else if (status == 1) 
	{
			cm.warp(511000100,0);
			cm.dispose();
    }
}	